<template>
  <div v-loading="loading" class="app-container">
    <el-form
        :model="queryParams"
        ref="queryForm"
        :inline="true"
        class="search-form-new"
        label-width="auto"
      >
      <el-form-item label="破晓余额" prop="">
        <h2>{{poxiao}}</h2>
        </el-form-item>
      <!-- <el-form-item label="监控类型" prop="monitorTaskType">
          <el-select clearable v-model="queryParams.monitorTaskType">
            <el-option
              :label="item.label"
              :value="key"
              v-for="(item,key) in taskTypeOptions"
              :key="key"
            ></el-option>
          </el-select>
        </el-form-item> -->
        <!-- <el-form-item label="游戏账号" prop="accountNumber">
          <el-input
            v-model="queryParams.accountNumber"
            placeholder="请输入"
            clearable
          />
        </el-form-item>
        <el-form-item label="商品编号" prop="goodsId">
          <el-input
            v-model="queryParams.goodsId"
            placeholder="请输入"
            clearable
          />
        </el-form-item>
        <el-form-item class="btns">
          <el-button
            type="primary"
            icon="el-icon-search"
            @click="search"
            >搜索</el-button
          >
          <el-button
            icon="el-icon-refresh"
            type="warning"
            @click="resetQuery"
            >重置</el-button
          >
        </el-form-item> -->
      </el-form>
      <div class="table_box">
        <el-table
          stripe
          :data="tableData.records"
          style="width: 100%"
        >
          <el-table-column label="ID" width="80" prop="id"></el-table-column>
          <el-table-column label="错误信息" prop="errText" />
          <el-table-column label="时间" prop="createTime"  />
        </el-table>
        <div class="pages-box">
          <pagination v-show="tableData.total > 0" :total="tableData.total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
                  @pagination="getList" />
        </div>
      </div>
    </div>
</template>
<script>
import checkPhoneApi from "@/api/gameConfig/checkPhonePx";
export default {
  name: "",
  data() {
    return {
      poxiao:'',//破晓余额
      loading: false,
      tableData: {
        records: [],
        total: 0,
      },
      queryParams: {
        pageNum: 1,
        pageSize: 20
      },
    };
  },
  created() {
    this.getList()
    this.getpoxiao()
  },
  methods: {
    // 获取破晓余额
    getpoxiao(){
      checkPhoneApi.pxyue().then(res=>{
        this.poxiao = res.data.data
      })
    },
  
    // 获取列表
    getList() {
      this.tableData.records = [];
      this.loading = true;
        checkPhoneApi
          .monitoringErrlist(this.queryParams)
          .then((response) => {
            this.loading = false;
            this.tableData.records = response.rows;
            this.tableData.total = response.total;
          })
          .catch((err) => {
            this.loading = false;
          });
    },
  },
};
</script>
<style scoped lang="css">

</style>
